package builder;


import builder.builder.AbstractBuilder;

/**
 * @description: 包装一下 给用户直接创造实例
　* @author 周杨
　* @date 2019/6/27  20:36
**/
class Director {
    private AbstractBuilder builder;
    Director(AbstractBuilder builder){
        this.builder = builder;
    }
    void setBuilder(AbstractBuilder builder){
        this.builder = builder;
    }
    void construct(){
        builder.buildVacation();
        builder.getVocation().showInfo();
    }
}
